package com.brilliance.project.common.report;

import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRField;

/**
 * Page/abstract Name:	BaseJRDataSource<br />
 * Title:		报表的 DataSource 父类别<br />
 * Description:	报表的 DataSource 父类别, 所有利用 DataSource 产生报表的继承此类别<br />
 * Copyright:	Copyright(c) brilliance Technology<br />.
 * @author HLJ
 * @version 1.0
 * @created 2012/11/26
 */
public abstract class BaseJRDataSource<E> implements JRDataSource {
	/**
	 * 取得该笔数据的某个字段
	 */
	public abstract Object getFieldValue(JRField jrField) throws JRException;

	/**
	 * 取得下一笔资料
	 */
	public abstract boolean next() throws JRException;
}
